# @shuaige : 陈世玉
# @name :test4.py
# @time :2025/2/18 18:01
def count_characters(s):
    counts = {
        'yingwen': 0,
        'shuzi': 0,
        'kongge': 0,
        'others': 0
    }

    for char in s:
        if char.isalpha():
            counts['yingwen'] += 1
        elif char.isdigit():
            counts['shuzi'] += 1
        elif char.isspace():
            counts['kongge'] += 1
        else:
            counts['others'] += 1
    return counts


text=str(input("请输入一段字符串："))
result = count_characters(text)
print(result)
